structure of the small intestine and its functions